<div class="main-content">
    <div class="section__content section__content--p20">
        <div class="container-fluid">
            <div class="row m-b-30">
                <div class="col-lg-12">
                    <div class="overview-wrap">
                        <h2 class="title-1">FLASH设置</h2>
                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <div class="table-responsive table--no-card m-b-30">
                        <table class="table table-borderless table-striped table-earning">
                            <thead>
                            <thead>
                            <tr>
                                <th>标题</th>
                                <th>类型</th>
                                <th>键</th>
                                <th>工具</th>
                            </tr>
                            </thead>
                            </thead>
                            <tbody>

                            <tbody>
                            <?php
                            if (sizeof ( $flashs ) > 0) {
                                foreach($flashs as $f){
                                    ?>
                                    <tr>
                                        <td><?php echo $f['title'];?></td>
                                        <td><?php echo $f['flashtype']=='images'?"图片":"FLASH";?></td>
                                        <td><?php echo $f['name'];?></td>
                                        <td>
                                            <button type="button" class="btn btn-primary btn-sm" onclick="showedit(<?php echo $f['flash_id']; ?>)" >编辑</button>
                                        </td>
                                    </tr>
                                    <?php
                                }
                            }
                            ?>
                            </tbody>
                        </table>
                    </div>

                </div>
            </div>
        </div>
    </div>
</div>
<script>
    function showedit(fid){
        window.location.href = "index.php?r=admin/flash/showedit&flash_id="+fid;
    }
</script>